package com.example.dingdong.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.example.dingdong.daomain.MenuEntity;
/**
 * 
 * @ClassName: MenuRepository
 * @Description:菜品持久层
 * @Author :chengwenixng
 * @Copyright: Smartlab411
 * @DateTime 2022-03-24 22:46:05
 */
@Repository
public interface MenuRepository extends JpaRepository<MenuEntity,Long>{
	/**
	 * 
	 * @Title: findByDelFlag
	 * @Description: 
	 * @Author coding
	 * @DateTime 2022-03-24 22:46:02
	 * @param delFlag
	 * @return
	 */
	List<MenuEntity> findByDelFlag(boolean delFlag);
	
	/**
	 * 
	 * @Title: findByIdAndDelFlag
	 * @Description: 
	 * @Author coding
	 * @DateTime 2022-03-24 22:45:55
	 * @param id
	 * @param delFlag
	 * @return
	 */
	MenuEntity findByIdAndDelFlag(Long id,boolean delFlag);
	/**
	 * 
	 * @Title: findByMenuNameAndDelFlag
	 * @Description: 
	 * @Author coding
	 * @DateTime 2022-03-24 22:45:49
	 * @param menuName
	 * @param delFlag
	 * @return
	 */
	MenuEntity findByMenuNameAndDelFlag(String menuName,boolean delFlag);
	
}
